package com.shangcheng.dubbo.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shangcheng.model.domain.SmsFlashPromotionProductRelation;

import java.util.List;

public interface SmsFlashPromotionProductRelationApi {
    Integer findAllProductCountByFlashCondition(Integer flashPromotionId,Integer flashPromotionSession);

    void save(List<SmsFlashPromotionProductRelation> relationList);

    void delete(Integer id);

    void update(SmsFlashPromotionProductRelation relation);

    SmsFlashPromotionProductRelation findById(Integer id);

    IPage findList(Integer flashPromotionId, Integer flashPromotionSessionId, Integer pageNum, Integer pageSize);
}
